package com.todo.auth.controller.request;

import com.todo.common.common.entity.CurrentUser;
import com.todo.common.utils.StringUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author zhangwenxiang
 * @date 2024/4/8 23:13
 * @description
 */
@Data
@Schema(title = "修改密码入参", description = "修改密码入参")
public class TransferPasswordParam {

    private CurrentUser _user;

    @Schema(title = "旧密码", description = "旧密码")
    private String oldPassword;

    @Schema(title = "信密码", description = "信密码")
    private String newPassword;

    public boolean checkParam() {
        if (StringUtils.isBlank(oldPassword) || StringUtils.isBlank(newPassword)){
            return false;
        }
        return true;
    }
}
